package com.example.jh352160.surfingtv.network.service;

import com.example.jh352160.surfingtv.network.bean.BindTelephoneBean;
import com.example.jh352160.surfingtv.network.bean.EditDataBean;
import com.example.jh352160.surfingtv.network.item.MyDataItem;
import com.example.jh352160.surfingtv.network.item.RequestItem;
import com.example.jh352160.surfingtv.network.bean.ChangePasswordBean;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.PUT;

/**
 * Created by jh352160 on 2016/8/12
 */

public interface MyDataService {

    @GET("app/profile")
    Call<MyDataItem> getItem();

    @GET("app/auth/logout")
    Call<RequestItem> logout();

    @PUT("app/profile/password")
    Call<RequestItem> changePassword(
            @Body ChangePasswordBean changePasswordBean
    );

    @POST("phoneCode")
    Call<RequestItem> sendSMS(@Body String[] body);

    @PUT("app/cellphone/bind")
    Call<RequestItem> bindTelephoneBean(
            @Body BindTelephoneBean bindTelephoneBean
    );

    @PUT("app/profile")
    Call<RequestItem> editData(
            @Body EditDataBean editDataBean
    );
}
